<?php 
/* SVN FILE: $Id$ */
/* Keyword Test cases generated on: 2011-11-18 13:21:16 : 1321602676*/
App::import('Model', 'Keyword');

class KeywordTestCase extends CakeTestCase {
	var $Keyword = null;
	var $fixtures = array('app.keyword');

	function startTest() {
		$this->Keyword =& ClassRegistry::init('Keyword');
	}

	function testKeywordInstance() {
		$this->assertTrue(is_a($this->Keyword, 'Keyword'));
	}

	function testKeywordFind() {
		$this->Keyword->recursive = -1;
		$results = $this->Keyword->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Keyword' => array(
			'id'  => 1,
			'website_id'  => 1,
			'keyword'  => 'Lorem ipsum dolor sit amet',
			'campaign_reference'  => 'Lorem ipsum dolor sit amet',
			'destination_url'  => 'Lorem ipsum dolor sit amet'
		));
		$this->assertEqual($results, $expected);
	}
}
?>